Skip to content

Conversation

@saksharthakkar
Copy link
Contributor

@saksharthakkar saksharthakkar commented Jan 15, 2026

Summary

  • Parse JSON-encoded attribute strings back to objects before final serialization
  • Fixes double-encoding issue where inputSchema, outputSchema, settings, toolCalls, usage were escaped strings instead of objects
  • Matches Temporal schema format

Test plan

  • Existing tests pass
  • Validate trace output

##Before

Screen.Recording.2026-01-15.at.3.17.04.PM.mov

##After
image

🤖 Generated with Claude Code

@github-actions github-actions bot added test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-llamaindex Triggers tests in the uipath-llamaindex-python repository labels Jan 15, 2026
@saksharthakkar saksharthakkar marked this pull request as draft January 15, 2026 21:29
@saksharthakkar saksharthakkar force-pushed the fix/temporal-attribute-parity branch from 581dee2 to ecba87e Compare January 15, 2026 21:51
@saksharthakkar saksharthakkar marked this pull request as ready for review January 15, 2026 23:23
@cristipufu cristipufu requested a review from ionmincu January 16, 2026 04:51
saksharthakkar and others added 5 commits January 16, 2026 11:32
OTEL only accepts primitives, so agents serialize dicts to JSON strings.
This caused double-encoding when the exporter serialized the entire
Attributes dict. Parse these fields back to objects before final
serialization to match Temporal schema (inputSchema, outputSchema,
settings, toolCalls, usage as objects not escaped strings).

Co-Authored-By: Claude Opus 4.5 <[email protected]>
Detect any string starting with { or [ and parse as JSON.
More maintainable - no need to update field list when new attributes added.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
- Add test_json_strings_parsed_to_objects to verify JSON-encoded strings
  starting with { or [ are parsed to objects before final serialization
- Remove docs/plans/proposal-interruptible-trace-context.md (unrelated)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@saksharthakkar saksharthakkar force-pushed the fix/temporal-attribute-parity branch from 52b2af7 to 3da3a96 Compare January 16, 2026 19:32
@saksharthakkar saksharthakkar merged commit cde11bd into main Jan 16, 2026
156 of 159 checks passed
@saksharthakkar saksharthakkar deleted the fix/temporal-attribute-parity branch January 16, 2026 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-llamaindex Triggers tests in the uipath-llamaindex-python repository

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants